package com.good.shopping.product.feign;

import com.good.common.base.ServiceConstant;
import com.good.common.to.SpuBoundTo;
import com.good.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author yan
 */
@FeignClient(value = ServiceConstant.SERVICE_WARE_NAME)
public interface WareFeignService {

    String API_PREFIX = "/ware";

    @PostMapping(API_PREFIX + "/waresku/hasStock")
    R getSkuHasStock(@RequestBody List<Long> SkuIds);

}
